package com.cjl.learn.builder;

/**
 * Created by Enzo Cotter on 2019-09-02.
 */
public class BuilderDirector {

    private Builder builder = null;

    public BuilderDirector(Builder builder) {
        this.builder = builder;
    }

    public House buildHouse() {
        builder.buildBase();
        builder.buildWall();
        builder.buildRoof();
        return builder.buildHouse();
    }
}
